import Vue from 'vue'
import Vuex from 'vuex'
import { menu, login, ElementUI } from './modules'
import mutations from './mutations'
import actions from './actions'

Vue.use(Vuex)

const debug = process.env.NODE_ENV !== 'production'

const store = new Vuex.Store({
  // 不要在发布环境下启用严格模式！
  strict: debug,
  modules: {
    ElementUI,
    menu,
    login
  },
  state: {},
  mutations,
  actions
})

export default store